package dhm.com.dhmshop.entity;

import java.util.List;

public class GetOneCategory {


    /**
     * code : [{"id":52,"name":"休闲食品","thumb":null},{"id":53,"name":"营养保健","thumb":null},{"id":47,"name":"时蔬水果","thumb":null},{"id":49,"name":"酒水饮料","thumb":null},{"id":50,"name":"粮油食品","thumb":null},{"id":51,"name":"美容护理","thumb":null},{"id":54,"name":"家居家电","thumb":null},{"id":48,"name":"厨卫清洁","thumb":null},{"id":334,"name":"手机数码","thumb":null},{"id":55,"name":"床上用品","thumb":null},{"id":335,"name":"图书音像","thumb":null},{"id":56,"name":"虚拟服务","thumb":null}]
     * message : 获取成功
     * data : []
     */

    private String message;
    private List<CodeBean> code;
    private List<?> data;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<CodeBean> getCode() {
        return code;
    }

    public void setCode(List<CodeBean> code) {
        this.code = code;
    }

    public List<?> getData() {
        return data;
    }

    public void setData(List<?> data) {
        this.data = data;
    }

    public static class CodeBean {
        /**
         * id : 52
         * name : 休闲食品
         * thumb : null
         */
        private ChildCategory childCategory;
        private int id;
        private String name;
        private Object thumb;
        private String checked="0";
        public ChildCategory getChildCategory() {
            return childCategory;
        }

        public String getChecked() {
            return checked;
        }

        public void setChecked(String checked) {
            this.checked = checked;
        }
        public void setChildCategory(ChildCategory childCategory) {
            this.childCategory = childCategory;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Object getThumb() {
            return thumb;
        }

        public void setThumb(Object thumb) {
            this.thumb = thumb;
        }
    }
    public static class ChildCategory {

        /**
         * code : 1
         * message : 获取成功
         * data : [{"id":190,"name":"休闲零食","thumb":null,"child":[{"catId":204,"simpleName":"薯片","catImg":"upload/goodscats/2019-02/5c7399faefdf8.jpg"},{"catId":205,"simpleName":"牛肉干","catImg":"upload/goodscats/2019-02/5c739a21e723c.jpg"},{"catId":206,"simpleName":"鱼豆腐","catImg":"upload/goodscats/2019-02/5c739a3f18070.jpg"},{"catId":207,"simpleName":"鱼干","catImg":"upload/goodscats/2019-02/5c739a69e72b3.jpg"},{"catId":208,"simpleName":"凤爪鸡翅","catImg":"upload/goodscats/2019-02/5c739a99efa6e.jpg"}]},{"id":189,"name":"坚果/蜜","thumb":null,"child":[{"catId":199,"simpleName":"坚果","catImg":"upload/goodscats/2019-02/5c739ab90ad67.jpg"},{"catId":200,"simpleName":"核桃","catImg":"upload/goodscats/2019-02/5c739ad87ccd7.png"},{"catId":201,"simpleName":"夏威夷果","catImg":"upload/goodscats/2019-02/5c739b044c190.jpg"},{"catId":202,"simpleName":"开心果","catImg":"upload/goodscats/2019-02/5c739b1e851ac.jpg"},{"catId":203,"simpleName":"百草味","catImg":"upload/goodscats/2019-02/5c739b415f045.jpg"}]},{"id":191,"name":"进口速食","thumb":null,"child":[{"catId":209,"simpleName":"进口意面","catImg":"upload/goodscats/2019-02/5c739b7b034ad.jpg"},{"catId":210,"simpleName":"进口调味","catImg":"upload/goodscats/2019-02/5c739b9cabf9c.jpg"},{"catId":211,"simpleName":"进口肉罐","catImg":"upload/goodscats/2019-02/5c739bc024ba8.jpg"},{"catId":212,"simpleName":"进口水果","catImg":"upload/goodscats/2019-02/5c739c00ae594.jpg"},{"catId":213,"simpleName":"进口咖喱","catImg":"upload/goodscats/2019-02/5c739c285e562.jpg"}]},{"id":192,"name":"进口休闲","thumb":null,"child":[{"catId":214,"simpleName":"进口薯片","catImg":"upload/goodscats/2019-02/5c739c50b39dd.jpg"},{"catId":215,"simpleName":"进口玉米","catImg":"upload/goodscats/2019-02/5c739c6d7ae3b.jpg"},{"catId":216,"simpleName":"进口果冻","catImg":"upload/goodscats/2019-02/5c739c8d5d8ca.jpg"},{"catId":217,"simpleName":"进口海苔","catImg":"upload/goodscats/2019-02/5c739d0599940.jpg"},{"catId":218,"simpleName":"进口海鲜","catImg":"upload/goodscats/2019-02/5c739d2985d0e.jpg"}]},{"id":193,"name":"进口饼干","thumb":"upload/goodscats/2019-02/5c739cb18b388.jpg","child":[{"catId":194,"simpleName":"进口曲奇","catImg":"upload/goodscats/2019-02/5c739ceb618c4.jpg"},{"catId":195,"simpleName":"进口蛋卷","catImg":"upload/goodscats/2019-02/5c739d57e995d.jpg"},{"catId":196,"simpleName":"进口西式","catImg":"upload/goodscats/2019-02/5c739d7f4ab5f.jpg"},{"catId":197,"simpleName":"进口夹心","catImg":"upload/goodscats/2019-02/5c739d9e035cc.jpg"},{"catId":198,"simpleName":"进口威化","catImg":"upload/goodscats/2019-02/5c739dd508867.jpg"}]}]
         */

        private int code;
        private String message;
        private List<DataBean> data;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * id : 190
             * name : 休闲零食
             * thumb : null
             * child : [{"catId":204,"simpleName":"薯片","catImg":"upload/goodscats/2019-02/5c7399faefdf8.jpg"},{"catId":205,"simpleName":"牛肉干","catImg":"upload/goodscats/2019-02/5c739a21e723c.jpg"},{"catId":206,"simpleName":"鱼豆腐","catImg":"upload/goodscats/2019-02/5c739a3f18070.jpg"},{"catId":207,"simpleName":"鱼干","catImg":"upload/goodscats/2019-02/5c739a69e72b3.jpg"},{"catId":208,"simpleName":"凤爪鸡翅","catImg":"upload/goodscats/2019-02/5c739a99efa6e.jpg"}]
             */

            private int id;
            private String name;
            private Object thumb;
            private List<ChildBean> child;

            private String checked="0";


            public String getChecked() {
                return checked;
            }

            public void setChecked(String checked) {
                this.checked = checked;
            }
            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public Object getThumb() {
                return thumb;
            }

            public void setThumb(Object thumb) {
                this.thumb = thumb;
            }

            public List<ChildBean> getChild() {
                return child;
            }

            public void setChild(List<ChildBean> child) {
                this.child = child;
            }

            public static class ChildBean {
                /**
                 * catId : 204
                 * simpleName : 薯片
                 * catImg : upload/goodscats/2019-02/5c7399faefdf8.jpg
                 */

                private int catId;
                private String simpleName;
                private String catImg;

                public int getCatId() {
                    return catId;
                }

                public void setCatId(int catId) {
                    this.catId = catId;
                }

                public String getSimpleName() {
                    return simpleName;
                }

                public void setSimpleName(String simpleName) {
                    this.simpleName = simpleName;
                }

                public String getCatImg() {
                    return catImg;
                }

                public void setCatImg(String catImg) {
                    this.catImg = catImg;
                }
            }
        }
    }

}
